<?

	require_once  $_SERVER['DOCUMENT_ROOT']."/../_lib/base/common.php";
	require_once SITE_ROOT_PATH."/_lib/classes/class.holidays.php";
	require_once SITE_ROOT_PATH."/_lib/classes/class.template.php";
	require_once SITE_ROOT_PATH."/_lib/classes/class.user_auth.php";
	
	$template = new template();
	$template->head_control();

	// See if user is logged in 
	$user_auth = new user_auth();
	$user_auth->user_auth_cp();
	
	$holidays = new holidays();
	$holidays->update_tour_operator_codes();
	
	$request = $holidays->create_gto_query();
	$response = array();
	$response = array();
	$response = $holidays->connection_sabs($request);
?>
<table border="1">
<tr>
<td><strong>CODE</strong></td>
<td><strong>TOUR OPERATOR</strong></td>
</tr>

<?
	foreach($response as $row){
	
		?>
	<tr>
    <td><?= $row[1] ?></td>
    <td><?= $row[14] ?></td>
    </tr>
		<?
	}

?>
</table>

<?


$template->foot_control();

?>